<?php
/*
 *  @author Nicolas Genevaux
 * (c)nige 2008
 */
	$MODIFICATEUR = 0;
	$IDMATIERE += 0;
	include_once($RACINE.'inc/fct.basedonnee.php');
	include_once($RACINE.'inc/sql.coefmatiere.php');
	include_once($RACINE.'inc/sql.matiere.php');
	//$IDMATIERE = 1;
	if($IDMATIERE>0) {
		$matiereBis = doSQL($MATIERE_SELECT_ID,array(0=>$IDMATIERE));
		$nomMatiere = $matiereBis['matiere'];
		$res = doSQL($COEFMATIERE_SELECT,array(0=>$IDMATIERE));
	}
	else {
		$res = doSQL($COEFMATIERE_SELECT_ALL,array(0=>$IDMATIERE));
	}
	$COEFMAT = $res['coefmatiere']+$MODIFICATEUR;
	$COEFGEN = 1;
	$INSCRITPTS = 20;
	
	$QUESTIONS = $COEFMAT*5+1;
	$TESTS = $COEFMAT*20+1;
	$INSCRIPTION = $COEFMAT*100+1;
	
	$COUT = $COEFGEN*1;
?>
